<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>个人中心</title>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css"
          rel="stylesheet">
    <link href="__PUBLIC__/Css/my.css" rel="stylesheet">

    <script src="__PUBLIC__/Js/my.js"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <include file="Public:top" title="个人中心"/>
    <!--topbar ends here-->
    <div class="row account-info">
        <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" align="center">
            <empty name="memberModel.headimgurl">
                <img src="__PUBLIC__/images/account.png" style="width:50px;height:50px;max-width: 50px;max-height:50px;">
                <else/>
                <img src="{$memberModel.headimgurl}" style="max-width: 100%;max-height:100%;">
            </empty>

        </div>
        <div class="col-xs-9 col-sm-9 col-md-9 col-lg-9">
            <div>昵称:{$memberModel.nickname}</div>
        </div>
    </div>

    <div class="row account-fl" onclick="onAccountMenuItemClick('order')">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            订单信息
            <img src="__PUBLIC__/images/arrow-right-thin.png" style="float:right;">
        </div>
    </div>
    <div class="row account-fl" onclick="onAccountMenuItemClick('passenger')">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            乘车人信息
            <img src="__PUBLIC__/images/arrow-right-thin.png" style="float:right;">
        </div>
    </div>
    <div class="row account-fl" onclick="onAccountMenuItemClick('point')">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            积分规则
            <img src="__PUBLIC__/images/arrow-right-thin.png" style="float:right;">
        </div>
    </div>
    <div class="row account-fl" onclick="onAccountMenuItemClick('help')">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            帮助文档
            <img src="__PUBLIC__/images/arrow-right-thin.png" style="float:right;">
        </div>
    </div>
</div>
<!--container ends here-->

<script type="text/javascript">
    function onAccountMenuItemClick(which) {
        switch (which) {
            //订单信息
            case 'order':
                window.location.href = "{:U('Order/index')}";
                break;
            //乘车人信息
            case 'passenger':
                window.location.href = "{:U('Account/passenger')}";
                break;
            //积分规则
            case 'point':
                window.location.href = "{:U('Account/point')}";
                break;
            // 帮助文档
            case 'help':
                window.location.href = "{:U('Account/help')}";
                break;
        }
    }
</script>
</body>
</html>